﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ItemNo.aspx.cs" Inherits="WMS6.Web.Configuration.ItemNo" meta:resourcekey="PageResource1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>ItemNo</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newItemNo()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "ItemNo.aspx?from=" + from;
            return false;
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }

        }
    </script>

</head>
<body>
    <form id="F2671" runat="server">
    <div>
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblItemNo" runat="server" CssClass="label_header" Text="项号" meta:resourcekey="lblItemNo"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="False"  Text="<%$ Resources:ButtonResource,btnGoBack %>"
                            CausesValidation="False" OnClick="btnGoBack_Click" 
                            meta:resourcekey="btnGoBackResource1" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Enabled="False"  Text="<%$ Resources:ButtonResource,btnNew %>"
                            AccessKey="n" OnClientClick="newItemNo();return false;" 
                            meta:resourcekey="btnNewResource1" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="False"  Text="<%$ Resources:ButtonResource,btnSave %>"
                            AccessKey="s" OnClick="btnSave_Click" 
                            meta:resourcekey="btnSaveResource1" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="False"  Text="<%$ Resources:ButtonResource,btnDelete %>"
                            AccessKey="d" OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;"
                            OnClick="btnDelete_Click" meta:resourcekey="btnDeleteResource1" />
                    </td>
                    <%--<td>
                        <asp:Button ID="btnCopy" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnCopy%>"
                            AccessKey="c" OnClick="btnCopy_Click" />
                    </td>--%>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_content">
            <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                <tr>
                    <td width="180px">
                        <asp:Label ID="lblItemNoID" CssClass="label" runat="server" Text="项号代码" meta:resourcekey="lblItemNoID"></asp:Label><span
                            class="must_input">*</span>
                    </td>
                    <td width="180px">
                        <asp:Label ID="lblItemNoUom" CssClass="label" runat="server" Text="项号单位" meta:resourcekey="lblItemNoUom"></asp:Label>
                    </td>
                    <td width="180px">
                        &nbsp;
                    </td>
                </tr>
                <tr>
                    <td width="180px">
                        <asp:TextBox ID="txtItemNoID" runat="server" CssClass="textbox" meta:resourcekey="txtItemNoID" MaxLength="15" ></asp:TextBox>
                    </td>
                    <td width="180px">
                        <asp:TextBox ID="txtItemNoUom" runat="server" CssClass="textbox" meta:resourcekey="txtItemNoUom" MaxLength="10" ></asp:TextBox>
                    </td>
                    <td width="180px">
                        &nbsp;
                    </td>
                </tr>
            </table>
            <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                <tr>
                    <td width="180px">
                        <asp:Label ID="lblDescr" runat="server" CssClass="label" meta:resourcekey="lblDescr"
                            Text="项号描述"></asp:Label><span
                            class="must_input">*</span>
                    </td>
                    <td width="180px">
                    </td>
                </tr>
                <tr>
                    <td width="400px">
                        <asp:TextBox ID="txtDescr" MaxLength="100" runat="server" CssClass="textbox" Width="390px" meta:resourcekey="txtDescr"></asp:TextBox>
                    </td>
                    <td width="180px">
                    </td>
                </tr>
                <tr style="height: 10px;">
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr style="height: 10px;">
                    <td>
                        <asp:CheckBox ID="chkIsActive" runat="server" CssClass="checkbox" Text="是否启用" Checked="True"
                            meta:resourcekey="chkIsActive" />
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnItemNoID" runat="server" type="hidden"></input>
        <input type="hidden" id="hdnFrom" runat="server" />
         <input id="hdnFlag" runat="server" type="hidden" value="0" />
    </div>
    </form>
</body>
</html>
